package com.mdinic.blogovi.front.common;

import org.apache.wicket.AttributeModifier;
import org.apache.wicket.markup.html.list.ListItem;

public class OddRowIndicator extends AttributeModifier {

    private static final String CLASS = "class";
    private static final long serialVersionUID = 1L;

    public OddRowIndicator(ListItem<?> item) {
        super(CLASS, item.getIndex() % 2 == 0 ? "row-dark" : null);
    }

}
